#include "FileDataTarget.h"
#include <assert.h>

FileDataTarget::FileDataTarget(char const* fileName)
{
	f = fopen(fileName, "wb");
	assert(NULL != f);
}


FileDataTarget::~FileDataTarget(void)
{
	fclose(f);
}

bool FileDataTarget::putNextByte(uint8_t next)
{
	fputc(next, f);
	return !ferror(f);
}